/*
 * (c) 2007, Delsi Interactive
 * User: Usuario Deltatek
 * Date: 16/04/2007
 * Time: 09:44 p.m.
 */

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.Windows.Forms;

namespace CSE
{
	/// <summary>
	/// Description of MainForm.
	/// </summary>
	public partial class MainForm : Form
	{
	    /*
	     * Variables
	     */
	    
		[STAThread]
		public static void Main(string[] args)
		{
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
			Application.Run(new MainForm());
		}
		
		public MainForm()
		{
			InitializeComponent();
		}
		
		/*
		 * File/New
		 */
		void NewToolStripMenuItemClick(object sender, EventArgs e)
		{
		    Workspace.Shutdown();
		    Workspace.Init();
		    
		    this.picStage.Invalidate();
		}
		
		/*
		 * PicStagePaint
		 */
		void PicStagePaint(object sender, PaintEventArgs e)
		{
		    Stage.Draw(e.Graphics, this.picStage.Width, this.picStage.Height);
		}
	}
}
